<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/3/22
  Time: 15:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>更新密码</title>
    <script type="text/javascript" src="../script/jquery-3.2.1.js"></script>
    <link rel="stylesheet" href="../css/registerLogin.css"/>
    <script type="text/javascript" src="../script/commonFunction.js"></script>
    <script type="text/javascript" src="../script/updatePsw.js"></script>
    <style type="text/css"></style>
    <script type="text/javascript">
        $(function () {
            $("#update_psw_submit").attr("disabled",true);
        });
    </script>
</head>
<body>

<fieldset>
    <legend align="center">修改密码</legend>
    <form action="../user/updatePsw" method="post" onsubmit="return checkUpdatePswForm()">
        <input type="hidden" value="${user.password}" id="password0"/>
        <div>
            原 密 码：<input type="password" id="oldPsw" placeholder="请输入原密码" onblur="checkP1()" />
        </div>
        <div class="error" id="old_psw_error"></div>

        <div>
            新 密 码：<input type="password" id="newPsw" name="newPsw" placeholder="请输入新密码" onblur="checkP2()" />
        </div>
        <div class="error" id="new_psw_error"></div>

        <div>
            确认密码：<input type="password" id="newPsw1" placeholder="请确认密码" onblur="checkP3()" />
        </div>
        <div class="error" id="new_psw1_error"></div>

        <div style="margin-top: 20px">
            <input type="submit" value="确认提交" id="update_psw_submit" class="sub" />
            <input type="reset" value="重置" class="sub" />
        </div>
    </form>
</fieldset>

</body>
</html>
